<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>
<div id="root">
    <p v-for="(s,i) in start" :key="i">{{s.name}}--{{s.gender}}--{{s.age}}</p>
    <button @click="fn">按钮</button>
</div>
<script>
    Vue.config.productionTip = false;
    const vm = new Vue({
        el: "#root",
        data: {
            start: [
                {name: '刘德华', age: '60', gender: '男'},
                {name: '李健', age: '50', gender: '男'},
                {name: '王心凌', age: '44', gender: '女'}]
        },
        methods: {
            fn('') {
               
                    console.log("hello");
                
            }
        }
    })
</script>
</body>
</html>
